package com.gduf.bbl.service.impl;

import com.gduf.bbl.common.utils.PageUtils;
import com.gduf.bbl.common.utils.Query;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.gduf.bbl.dao.AddressInfoDao;
import com.gduf.bbl.entity.AddressInfoEntity;
import com.gduf.bbl.service.AddressInfoService;


@Service("addressInfoService")
public class AddressInfoServiceImpl extends ServiceImpl<AddressInfoDao, AddressInfoEntity> implements AddressInfoService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<AddressInfoEntity> page = this.page(
                new Query<AddressInfoEntity>().getPage(params),
                new QueryWrapper<AddressInfoEntity>()
        );

        return new PageUtils(page);
    }

}